home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10828 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 31 2e 69 73 2e 6e |Path: ne|ws1.is.n|
|00000010| 65 74 21 6e 65 77 73 0a | 46 72 6f 6d 3a 20 4d 61 |et!news.|From: Ma|
|00000020| 72 6b 20 56 61 6e 54 61 | 73 73 65 6c 20 3c 6d 76 |rk VanTa|ssel <mv|
|00000030| 61 6e 74 61 73 73 65 6c | 40 74 65 61 6d 62 63 61 |antassel|@teambca|
|00000040| 2e 63 6f 6d 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |.com>.Ne|wsgroups|
|00000050| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 2b 2b 0a |: comp.l|ang.c++.|
|00000060| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 48 65 6c |Subject:| Re: Hel|
|00000070| 70 2c 20 43 2b 2b 20 27 | 26 27 20 64 65 72 65 66 |p, C++ '|&' deref|
|00000080| 65 72 65 6e 63 65 72 0a | 44 61 74 65 3a 20 4d 6f |erencer.|Date: Mo|
|00000090| 6e 2c 20 31 31 20 4d 61 | 72 20 31 39 39 36 20 30 |n, 11 Ma|r 1996 0|
|000000a0| 38 3a 30 37 3a 30 30 20 | 2d 30 35 30 30 0a 4f 72 |8:07:00 |-0500.Or|
|000000b0| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 42 61 72 66 |ganizati|on: Barf|
|000000c0| 69 65 6c 64 2c 20 43 61 | 75 74 68 65 6e 20 61 6e |ield, Ca|uthen an|
|000000d0| 64 20 41 73 73 6f 63 69 | 61 74 65 73 0a 4d 65 73 |d Associ|ates.Mes|
|000000e0| 73 61 67 65 2d 49 44 3a | 20 3c 33 31 34 34 32 35 |sage-ID:| <314425|
|000000f0| 37 34 2e 37 35 44 40 74 | 65 61 6d 62 63 61 2e 63 |74.75D@t|eambca.c|
|00000100| 6f 6d 3e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |om>.Refe|rences: |
|00000110| 3c 34 69 31 35 33 6d 24 | 70 67 66 40 62 69 67 6e |<4i153m$|pgf@bign|
|00000120| 65 77 73 2e 73 68 65 66 | 2e 61 63 2e 75 6b 3e 0a |ews.shef|.ac.uk>.|
|00000130| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000140| 74 3a 20 64 79 6e 61 6d | 69 63 32 33 2e 69 73 2e |t: dynam|ic23.is.|
|00000150| 6e 65 74 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |net.Mime|-Version|
|00000160| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|00000170| 70 65 3a 20 74 65 78 74 | 2f 70 6c 61 69 6e 3b 20 |pe: text|/plain; |
|00000180| 63 68 61 72 73 65 74 3d | 75 73 2d 61 73 63 69 69 |charset=|us-ascii|
|00000190| 0a 43 6f 6e 74 65 6e 74 | 2d 54 72 61 6e 73 66 65 |.Content|-Transfe|
|000001a0| 72 2d 45 6e 63 6f 64 69 | 6e 67 3a 20 37 62 69 74 |r-Encodi|ng: 7bit|
|000001b0| 0a 58 2d 4d 61 69 6c 65 | 72 3a 20 4d 6f 7a 69 6c |.X-Maile|r: Mozil|
|000001c0| 6c 61 20 32 2e 30 20 28 | 57 69 6e 39 35 3b 20 49 |la 2.0 (|Win95; I|
|000001d0| 29 0a 54 6f 3a 20 45 72 | 69 63 20 53 6d 69 74 68 |).To: Er|ic Smith|
|000001e0| 20 3c 45 2e 56 2e 53 6d | 69 74 68 40 73 68 65 66 | <E.V.Sm|ith@shef|
|000001f0| 2e 61 63 2e 75 6b 3e 0a | 0a 45 72 69 63 20 53 6d |.ac.uk>.|.Eric Sm|
|00000200| 69 74 68 20 77 72 6f 74 | 65 3a 0a 3e 20 0a 3e 20 |ith wrot|e:.> .> |
|00000210| 4d 79 20 6d 61 6e 75 61 | 6c 73 20 61 6e 64 20 6f |My manua|ls and o|
|00000220| 6e 6c 69 6e 65 20 68 65 | 6c 70 20 69 73 20 61 20 |nline he|lp is a |
|00000230| 6c 69 74 74 6c 65 20 76 | 61 67 75 65 20 6f 6e 20 |little v|ague on |
|00000240| 74 68 69 73 20 6f 6e 65 | 20 73 6f 20 63 61 6e 20 |this one| so can |
|00000250| 61 6e 79 6f 6e 65 0a 3e | 20 70 6c 65 61 73 65 20 |anyone.>| please |
|00000260| 73 69 6d 70 6c 79 20 65 | 78 70 6c 61 69 6e 20 74 |simply e|xplain t|
|00000270| 6f 20 6d 65 20 77 68 61 | 74 20 74 68 65 20 20 26 |o me wha|t the &|
|00000280| 20 20 73 69 67 6e 20 28 | 20 6f 72 20 27 64 65 72 | sign (| or 'der|
|00000290| 65 66 65 72 65 6e 63 65 | 72 27 20 49 20 62 65 6c |eference|r' I bel|
|000002a0| 69 65 76 65 29 0a 3e 20 | 69 73 20 64 6f 69 6e 67 |ieve).> |is doing|
|000002b0| 20 69 6e 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | in the |followin|
|000002c0| 67 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 77 |g comman|d line w|
|000002d0| 68 65 72 65 20 27 76 61 | 6c 75 65 27 20 73 68 6f |here 'va|lue' sho|
|000002e0| 75 6c 64 20 65 6e 64 20 | 75 70 20 61 73 20 31 20 |uld end |up as 1 |
|000002f0| 6f 72 20 30 2e 0a 3e 20 | 0a 3e 20 20 20 20 20 76 |or 0..> |.> v|
|00000300| 61 6c 75 65 3d 28 28 69 | 6e 70 6f 72 74 62 28 30 |alue=((i|nportb(0|
|00000310| 78 31 42 34 29 20 26 20 | 30 78 32 30 29 3e 3e 35 |x1B4) & |0x20)>>5|
|00000320| 29 3b 0a 3e 20 0a 3e 20 | 69 66 20 79 6f 75 20 63 |);.> .> |if you c|
|00000330| 61 6e 20 70 75 74 20 69 | 74 20 69 6e 20 63 6f 6e |an put i|t in con|
|00000340| 74 65 78 74 20 77 69 74 | 68 20 74 68 65 20 70 72 |text wit|h the pr|
|00000350| 6f 62 6c 65 6d 20 69 74 | 20 77 6f 75 6c 64 20 62 |oblem it| would b|
|00000360| 65 20 67 72 65 61 74 2e | 0a 3e 20 54 68 61 6e 6b |e great.|.> Thank|
|00000370| 73 2e 0a 3e 20 45 72 69 | 63 2e 2e 2e 0a 3e 20 45 |s..> Eri|c....> E|
|00000380| 6d 61 69 6c 20 72 65 70 | 6c 79 20 61 70 70 72 65 |mail rep|ly appre|
|00000390| 63 69 61 74 65 64 20 69 | 66 20 70 6f 73 73 69 62 |ciated i|f possib|
|000003a0| 6c 65 20 70 6c 65 61 73 | 65 0a 0a 41 63 74 75 61 |le pleas|e..Actua|
|000003b0| 6c 6c 79 2c 20 75 6e 61 | 72 79 20 22 26 22 20 69 |lly, una|ry "&" i|
|000003c0| 73 20 6d 6f 72 65 20 6c | 69 6b 65 20 61 20 22 72 |s more l|ike a "r|
|000003d0| 65 66 65 72 65 6e 63 65 | 72 22 20 28 75 6e 61 72 |eference|r" (unar|
|000003e0| 79 20 22 2a 22 20 69 73 | 20 74 68 65 20 64 65 2d |y "*" is| the de-|
|000003f0| 72 65 66 65 72 65 6e 63 | 65 72 29 2c 20 62 75 74 |referenc|er), but|
|00000400| 20 69 6e 20 74 68 69 73 | 20 0a 63 61 73 65 20 69 | in this| .case i|
|00000410| 74 27 73 20 61 20 62 69 | 6e 61 72 79 20 6f 70 65 |t's a bi|nary ope|
|00000420| 72 61 74 6f 72 2c 20 61 | 6e 64 20 74 68 75 73 20 |rator, a|nd thus |
|00000430| 73 69 6d 70 6c 79 20 61 | 20 62 69 74 2d 77 69 73 |simply a| bit-wis|
|00000440| 65 20 41 4e 44 2e 20 4c | 6f 6f 6b 73 20 74 6f 20 |e AND. L|ooks to |
|00000450| 6d 65 20 6c 69 6b 65 20 | 74 68 65 72 65 27 73 20 |me like |there's |
|00000460| 61 20 66 6e 20 63 61 6c | 6c 65 64 20 0a 69 6e 70 |a fn cal|led .inp|
|00000470| 6f 72 74 28 29 20 77 68 | 69 63 68 20 74 61 6b 65 |ort() wh|ich take|
|00000480| 73 20 61 20 70 6f 72 74 | 20 6e 75 6d 62 65 72 20 |s a port| number |
|00000490| 28 62 65 69 6e 67 20 73 | 70 65 63 69 66 69 65 64 |(being s|pecified|
|000004a0| 20 69 6e 20 68 65 78 29 | 20 61 6e 64 20 72 65 74 | in hex)| and ret|
|000004b0| 75 72 6e 73 20 64 61 74 | 61 2e 20 54 68 69 73 20 |urns dat|a. This |
|000004c0| 64 61 74 61 20 69 73 20 | 62 65 69 6e 67 20 0a 41 |data is |being .A|
|000004d0| 4e 44 65 64 20 77 69 74 | 68 20 30 78 32 30 20 28 |NDed wit|h 0x20 (|
|000004e0| 61 6b 61 20 30 30 31 30 | 30 30 30 30 20 62 69 6e |aka 0010|0000 bin|
|000004f0| 61 72 79 29 2c 20 65 66 | 66 65 63 74 69 76 65 6c |ary), ef|fectivel|
|00000500| 79 20 74 75 72 6e 69 6e | 67 20 6f 66 66 20 61 6c |y turnin|g off al|
|00000510| 6c 20 62 75 74 20 74 68 | 65 20 33 72 64 20 62 69 |l but th|e 3rd bi|
|00000520| 74 2e 20 54 68 69 73 20 | 76 61 6c 75 65 20 69 73 |t. This |value is|
|00000530| 20 0a 74 68 65 6e 20 62 | 65 69 6e 67 20 62 69 74 | .then b|eing bit|
|00000540| 2d 73 68 69 66 74 65 64 | 20 35 20 70 6c 61 63 65 |-shifted| 5 place|
|00000550| 73 20 74 6f 20 74 68 65 | 20 72 69 67 68 74 2c 20 |s to the| right, |
|00000560| 73 6f 20 74 68 61 74 20 | 74 68 65 20 66 69 6e 61 |so that |the fina|
|00000570| 6c 20 76 61 6c 75 65 20 | 69 73 20 6e 75 6d 65 72 |l value |is numer|
|00000580| 69 63 20 31 20 28 69 66 | 20 74 68 65 20 33 72 64 |ic 1 (if| the 3rd|
|00000590| 20 0a 62 69 74 20 6f 66 | 20 69 6e 70 6f 72 74 28 | .bit of| inport(|
|000005a0| 29 20 77 61 73 20 6f 6e | 29 20 6f 72 20 30 20 28 |) was on|) or 0 (|
|000005b0| 69 66 20 69 74 20 77 61 | 73 20 6f 66 66 29 2e 0a |if it wa|s off)..|
+--------+-------------------------+-------------------------+--------+--------+